package com.softWang.system.controller.vo.systemTenant;

import com.softWang.common.constants.CommonStateEnum;
import com.softWang.common.validation.InEnum;
import com.softWang.system.constants.AreaTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
 * <p>
 * 系统管理--租户表新增时数据内容
 * </p>
 */
@Data
@ApiModel
public class SystemTenantAddParam {

    @ApiModelProperty(value = "租户名,长度40")
    @NotBlank(message = "tname不能为空")
    @Size(max = 40, message = "tname最大长度为40")
    private String tname;

    @ApiModelProperty(value = "登录账户，最大长度为60位")
    @NotBlank(message = "loginName不能为空")
    @Size(max = 60,message = "loginName最大长度为60位")
    private String loginName;

    @ApiModelProperty(value = "联系人,长度10")
    @NotBlank(message = "contactName不能为空")
    @Size(max = 10, message = "contactName最大长度为10")
    private String contactName;

    @ApiModelProperty(value = "联系人手机,长度30")
    @NotBlank(message = "contactMobile不能为空")
    @Size(max = 30, message = "contactMobile最大长度为30")
    private String contactMobile;

    @ApiModelProperty(value = "性别，1:男;2:女;0:未知")
    private String sex;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "租户状态，0:正常,1:停用,长度3")
    @NotNull(message = "state不能为空")
    @InEnum(value = CommonStateEnum.class, message = "state值必须在{value}范围内")
    private Integer state;

}
